Repository navigation
feat(gateway): sign in to LiteLLM with company OIDC SSO - #7844
Draft
benjaminshafii wants to merge 1 commit into
Draft
benjaminshafii wants to merge 1 commit into
benjaminshafii wants to merge 1 commit into
Conversation
LiteLLM providers get a third member sign-in mode next to keys and Entra: people sign in with the organization's own OpenID Connect identity provider (Okta, Auth0, ...). An admin stores the issuer, a confidential OIDC web app and one API scope; Den tries prompt=none first and falls back to an interactive sign-in when the identity provider asks for one. The Gateway renews tokens with the stored refresh token and sends the access token to the proxy, which validates it with LiteLLM JWT auth. Behind the ssoModelSignIn flag. With it off, the Gateway and Den drop these providers' grants and refuse setup and sign-in; stored credentials are kept.
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this about?
LiteLLM providers get a third member sign-in mode: the company's own OpenID Connect SSO (Okta, Auth0, ...), next to LiteLLM keys and Entra.
What problem does it solve?
Companies on a non-Microsoft identity provider had to hand out LiteLLM keys, so model access wasn't tied to their SSO.
What was the situation before?
The LiteLLM editor offered keys or Microsoft Entra sign-in only. There was no Okta or other OIDC option.
How is this implemented?
ssoModelSignIn, off by default. Settingslitellm.keySource = "oidc"+oidcIssuer,oidcScope. Migration0226_gateway_oidc_sign_in.gateway-upstreams/src/oidc.ts: issuer discovery that must match exactly, an https-only URL rule, token checks.inference-provider-oidc-oauth.ts+ routes: triesprompt=nonefirst and falls back to the sign-in page. A sign-in is stored only with a refresh token, a matching nonce, and an access token from that issuer.litellm.mdx#company-sso-sign-in.What else changed?
none
Release note
none
Evidence
ee/apps/den-api/test/api/litellm-oidc-sign-in.api.test.ts: before, no OIDC mode. After, a member signs in with no screen or through the sign-in page and gets the models. Bad tokens are never stored, and with the flag off the models are hidden. Alsogateway/test/litellm-oidc-sign-in.test.tsandgateway-upstreams/test/oidc.test.ts. The identity provider is a stand-in; real Okta and LiteLLM aren't tested yet.Design: P5, C3, C6. No screenshots yet (P10).